{subtemplate header}
<div class="subtable nav" style="width: {TABLEWIDTH}"><img src="{IMGDIR}/map.png" align="absmiddle" alt="You are here" class="map" /> <a href="$indexname">$bbname</a> &raquo; {lang pm}
</div></div>
<div class="maintable">
<ul class="tabs">
<li class="normal"><a href="pm.php?action=send">{lang pm_send}</a></li>
<li class="current"><a href="pm.php?folder=inbox"><!--{if empty($action) && $folder == 'inbox'}--><b>{lang pm_inbox}</b><!--{else}-->{lang pm_inbox}<!--{/if}--></a> [<a href="pm.php?folder=inbox&filter=newpm">{lang pm_unread} <span id="pm_unread">$pm_inbox_newpm</span></a>]</li>
<li class="current"><a href="pm.php?folder=outbox"><!--{if empty($action) && $folder == 'outbox'}--><b>{lang pm_outbox}</b><!--{else}-->{lang pm_outbox}<!--{/if}--></a>($pm_outbox)</li>
<li class="current"><a href="pm.php?folder=track"><!--{if empty($action) && $folder == 'track'}--><b>{lang pm_track}</b><!--{else}-->{lang pm_track}<!--{/if}--></a></li>
<!--{if $allowsearch}--><li class="current"><!--{if $action == 'search'}--><b><a href="pm.php?action=search">{lang pm_search}</a></b><!--{else}--><a href="pm.php?action=search">{lang pm_search}</a><!--{/if}--></li><!--{/if}-->
<li class="current"><a href="pm.php?action=archive"><!--{if $action == 'archive'}--><b>{lang pm_archive}</b><!--{else}-->{lang pm_archive}<!--{/if}--></a></li>
<li class="current"><a href="pm.php?action=ignore"><!--{if $action == 'ignore'}--><b>{lang pm_ignore}</b><!--{else}-->{lang pm_ignore}<!--{/if}--></a></li>
</ul>
<table cellspacing="0" cellpadding="0" border="0" width="{TABLEWIDTH}" align="center">
<tr><td valign="top">

<!--{if empty($action)}-->
	{subtemplate pm_folder}
<!--{elseif $action == 'view'}-->
	{subtemplate pm_view}
<!--{elseif $action == 'send'}-->
	{subtemplate pm_send}
<!--{elseif $action == 'search'}-->
	<!--{if !empty($searchid)}-->{subtemplate pm_search_result}<!--{else}-->{subtemplate pm_search}<!--{/if}-->
<!--{elseif $action == 'archive'}-->
	{subtemplate pm_archive}
<!--{elseif $action == 'ignore'}-->
	{subtemplate pm_ignore}
<!--{/if}-->
</td></tr></table>


{subtemplate footer}